class Stud:
    calzz = '小学'
    def __init__(self,age):
        self.age = age


print(Stud.calzz)
s = Stud(18)
print(s.calzz)
s.calzz = '中学'
print(s.calzz)
print(Stud.calzz)

#  类方法

class People:
    country ='美国'
    @classmethod
    def getValue(cls):
        return cls.country

    @staticmethod
    def getDate():
        return People.country


p = People()
print(People.getDate())
print(p.getValue())